<h2><?= $this->translate('Home'); ?></h2>

<?= $this->translate('hello there'); ?>

<?php
$this->title = "Users";
$this->headTitle($this->title);
?>
<p><a href="<?php echo $this->url(array('controller'=>'index',
'action'=>'add'));?>"><?= $this->translate('Add new user'); ?></a></p>
<p><a href="<?php echo $this->url(array('controller'=>'register',
'action'=>''));?>"><?= $this->translate('Add new people'); ?></a></p>
<table>
<tr>
<th> <?= $this->translate('User'); ?></th>
<th> <?= $this->translate('Password'); ?></th>
<th> <?= $this->translate('Salt'); ?></th>
<th> <?= $this->translate('Role'); ?></th>
<th> <?= $this->translate('Date'); ?></th>
<th>&nbsp;</th>
</tr>
<?php foreach($this->users as $user) : ?>
<tr>
<td><?php echo $this->escape($user->username);?></td>
<td><?php echo $this->escape($user->password);?></td>
<td><?php echo $this->escape($user->salt);?></td>
<td><?php echo $this->escape($user->role);?></td>
<td><?php echo $this->escape($user->date_created);?></td>
<td>
<a href="<?php echo $this->url(array('controller'=>'index',
'action'=>'edit', 'id'=>$user->id));?>"><?= $this->translate('Edit'); ?></a>
<a href="<?php echo $this->url(array('controller'=>'index',
'action'=>'delete', 'id'=>$user->id));?>"><?= $this->translate('Delete'); ?></a>
</td>
</tr>
<?php endforeach; ?>
</table>